using NHibernate;
using NHibernate.Tool.hbm2ddl;
using NUnit.Framework;
using ThunderJob.Persistence;

namespace ThunderJob.IntegrationTest.TestBases
{
    public abstract class MappingTestBase 
    {
        [SetUp]
        protected virtual void SetUp()
        {
            PersistenceTestConfiguration.Init();
        }

        [TearDown]
        public virtual void TearDown()
        {
            PersistenceTestConfiguration.Reset();
        }

        public ISession Session
        {
            get { return PersistenceTestConfiguration.Session; }
        }
    }
}